import axios from 'axios'

const request = axios.create({
  baseURL: "http://www.iscatseven.top:4900/",
  timeout: 20000,
});

// 请求拦截
request.interceptors.request.use(config => config, error => Promise.reject(error))

// 响应拦截
request.interceptors.response.use(res => res.data, error => Promise.reject(error))

export default request